<template>
    <div class="home">
        <img src="../Home/1.png" alt="">
        <NewUserCoupon
                :r-success="rSuccess"
                :coupon-data="couponData"
                :got="got"
                :is-white="false"
        >

            <BlockBtn
                    slot="ctrl"
                    style="margin-top: 0.2rem;"
                    txt="文字加粗按钮"
                    :is-blod="true"
                    :is-white="true"
                    :is-white-border="true"
                    :is-rounded="true"
                    @fastclick="clickMe"
            />
        </NewUserCoupon>
    </div>
</template>
<script>
    import { NewUserCoupon , BlockBtn } from "@herobuy/ui";
    
    export default {
        name: "Success",
        data() {
            return {
                rSuccess: "领取红包后，可在“我的”-“优惠券”中查看。", //提示
                couponData: [
                    {
                        type_id:"23",
                        type_name:"新手礼包50元-满500减50",
                        type_money:"50.00",
                        send_type:"4",
                        min_amount:"0.00",
                        max_amount:"0.00",
                        send_start_date:"1488268800",
                        send_end_date:"1582876800",
                        use_start_date:"1488268800",
                        use_end_date:"2020-06-30",
                        min_goods_amount:"500.00",
                        type:"0",
                        is_point_change:"0",
                        is_exclusive_mall:"0"
                    },
                    {
                        type_id:"24",
                        type_name:"新手礼包20元-满200减20",
                        type_money:"20.00",
                        send_type:"4",
                        min_amount:"0.00",
                        max_amount:"0.00",
                        send_start_date:"1488268800",
                        send_end_date:"1624953600",
                        use_start_date:"1488268800",
                        use_end_date:"2020-06-30",
                        min_goods_amount:"200.00",
                        type:"0",
                        is_point_change:"0",
                        is_exclusive_mall:"0"
                    },
                    {
                        type_id:"25",
                        type_name:"新手礼包20元-满200-20",
                        type_money:"20.00",
                        send_type:"4",
                        min_amount:"0.00",
                        max_amount:"0.00",
                        send_start_date:"1488268800",
                        send_end_date:"1624953600",
                        use_start_date:"1488268800",
                        use_end_date:"2020-06-30",
                        min_goods_amount:"200.00",
                        type:"0",
                        is_point_change:"0",
                        is_exclusive_mall:"0"
                    },
                    {
                        type_id:"22",
                        type_name:"新手礼包10元-无门槛",
                        type_money:"10.00",
                        send_type:"4",
                        min_amount:"0.00",
                        max_amount:"0.00",
                        send_start_date:"1488268800",
                        send_end_date:"1582876800",
                        use_start_date:"1488268800",
                        use_end_date:"2020-07-30",
                        min_goods_amount:"0.00",
                        type:"0",
                        is_point_change:"0",
                        is_exclusive_mall:"0"
                    }
                ],
                got: 1 //是否已经领取
            };
        },
        components: {
            NewUserCoupon,
            BlockBtn
        },
        methods:{
            clickMe(){
                console.log('click')
            }
        }
    }
</script>
<style>
    .home{
        background-color: aliceblue;
    }
</style>
